//
//  FBDPhotoManger.h
//  iOS9Sample-Photos
//
//  Created by feng on 2018/4/7.
//  Copyright © 2018年 小码哥. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>
@interface FBDPhotoManger : NSObject

@property(nonatomic,strong)NSMutableArray*selectAssetPhotoArray;
@property(nonatomic,strong)NSMutableArray*selectAssetIDPhotoArray;


/**
 单列类

 @return 实例化的单例对象
 */
+(instancetype)shareManager;

/**
 查询用户的所有相册

 @param searchLastImagesInCollection 匿名函数
 @param collection block把柄
 */
-(void)searchUserMobileAllCollectionComplained:(void(^)(NSMutableArray<PHAssetCollection*>*assetCollectionArray))complainedBlock;


/*
 *
 * 查询某个相册里面的封面 （最近拍摄的那张图）
 */
- (void)searchLastImagesInCollection:(PHAssetCollection *)assetCollection withBlcok:(void (^)(UIImage *__nullable result, NSInteger totalPic))resultHandler;


/*
*
* 查询某个相册里面的所有图片
*/
- (void)searchAllImagesInCollection:(PHAssetCollection *)collection;








@end
